<?php
namespace app\api\controller;
use think\Controller;
use think\Db;
class Serve extends Controller{
	public function noticelist(){
		$data=Db::table("service_notice")->select();
		if(!empty($data)){
			return json_encode($data);
		}else{
			return json_encode(1);
		}
	}
	
	public function repair(){

	}

	//企业列表
	public function companyList(){
		$data=Db::table("company")->select();
		if(!empty($data)){
			return json(["errCode"=>"0",'company' => $data]);;
		}else{
			return json(["errCode"=>"1"]);
			
		}
	}


}